'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview pvp黑名单信息
 * @author sundbcn@gmail.com (sun debing)
 */

var moment = require('moment');
var mongoose = require('mongoose');

/**
 * event item
 * @type {mongoose}
 */
var pvpBlackItemSchema = new mongoose.Schema({
    // 角色ID
    role_id: {
        type: Number,
        required: true
    },

    // 加入到黑名单的时间
    add_time: {
        type: Number,
        required: true
    }
});

if (!pvpBlackItemSchema.options.toJSON) {
    pvpBlackItemSchema.options.toJSON = {};
}
/* jshint unused:false */
pvpBlackItemSchema.options.toJSON.transform = function (doc, ret) {
    delete ret._id;
    delete ret.__v;
};

module.exports = pvpBlackItemSchema;
